package com.stqf.scala.jdk8;

/**
 * Created by ASUS on 2018-01-31.
 */
public class ExceptionResearch {
    private static int i = 10;

    static {
        i = 20;
    }


    public static void main(String[] args) {
        System.out.println(i);
        String str = request();
        System.out.println(str);
    }

    private static String request() {
        try {
            int a = 1 / 0;
            return "try";
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            return "finally";
        }
        // return "aaa";
    }
}
